package javaAPI.String.String2;

public class String6 {
    public static void main(String[] args) {
        String talk="你玩的真好，以后不要再玩了，CNM,cnm";
        String[]arr={"CNM","cnm","MLGB","nmd"};
        for (int i = 0; i < arr.length; i++) {
            talk=talk.replace(arr[i],"***");
        }
        System.out.println(talk);
    }
}
